/*
 * File Name：TrackCls.java
 * Copyright：Copyright 2008-2012 CiWong.Inc. All Rights Reserved.
 * Description： TrackCls.java
 * Modify By：jejun
 * Modify Date：2012-12-9
 * Modify Type：Add
 */
package com.ciwong.ciwongwrite.mode;

import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;

/**
 * <pre>
 * 清屏操作
 * </pre>
 *
 * @author jejun
 * @version ciwong v.1.0 2012-12-9
 * @since ciwong v.1.0
 */
public class TrackCls extends TrackBase
{

    /**
     * 把缓冲位图清空
     *
     * @param //mBuffer
     *            缓冲位图
     * @param bgColor
     *            背景色
     * @return Bitmap
     */
    public Bitmap clear(int width, int height, int bgColor)
    {
        Bitmap mBuffer = Bitmap.createBitmap(width, height, Config.ARGB_8888);
        Canvas mCanvas = new Canvas(mBuffer);
        mCanvas.drawColor(bgColor);
        return mBuffer;
    }

    @Override
    public void draw(Canvas mCanvas)
    {

    }

    @Override
    public String format(boolean touchDown)
    {
        return "";
    }

}
